package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 项目任务
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("prj_project_task")
@ApiModel(value="ErpProjectTask对象", description="项目任务")
public class ErpProjectTask extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "所有有级ids")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "任务标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "项目id")
    @TableField("project_id")
    private Integer projectId;

    @ApiModelProperty(value = "项目名称")
    @TableField("project_name")
    private String projectName;

    @ApiModelProperty(value = "项目计划id")
    @TableField("plan_id")
    private Integer planId;

    @ApiModelProperty(value = "项目计划名称")
    @TableField("plan_name")
    private String planName;

    @ApiModelProperty(value = "任务类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "是否最末级")
    @TableField("tree_leaf")
    private Boolean treeLeaf;

    @ApiModelProperty(value = "层级")
    @TableField("tree_level")
    private Integer treeLevel;

    @ApiModelProperty(value = "负责人id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "负责人")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "优先级:1最高 2:一般 3:较低")
    @TableField("priority_level")
    private Boolean priorityLevel;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "开始日期")
    @TableField("begin_date")
    private LocalDate beginDate;

    @ApiModelProperty(value = "完成日期")
    @TableField("end_date")
    private LocalDate endDate;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改日期")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;


}
